package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcGasMapper;
import com.sdry.model.zc.ZcGasEntity;
import com.sdry.model.zc.ZcProductTestEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.service.zc.ZcGasService;
/**
 * 
 * @ClassName:    ZcGasServiceImpl   
 * @Description:  气密性打压
 * @Author:       zc   
 * @CreateDate:   2018年10月10日 上午11:17:22   
 * @Version:      v1.0
 */
@Service
public class ZcGasServiceImpl implements ZcGasService {

	@Resource
	private ZcGasMapper zcGasMapper;
	/**
	 * 保存气密性打压记录
	 */
	@Override
	public int insertGas(ZcGasEntity zcGasEntity) {
		return zcGasMapper.insertGas(zcGasEntity);
	}
	/**
	 * 查询今日气密性检测记录
	 */
	@Override
	public List<ZcGasEntity> selectTodayLogList(ZcQueryCriteria zcQueryCriteria) {
		return zcGasMapper.selectTodayLogList(zcQueryCriteria);
	}
	/**
	 * 查询今日气密性检测记录数量
	 */
	@Override
	public int countTodayLogList(ZcQueryCriteria zcQueryCriteria) {
		return zcGasMapper.countTodayLogList(zcQueryCriteria);
	}
	/**
	 * 查询组件历史检测记录
	 */
	@Override
	public List<ZcProductTestEntity> selectHistoryLogList(
			ZcQueryCriteria zcQueryCriteria) {
		return zcGasMapper.selectHistoryLogList(zcQueryCriteria);
	}

}
